//
//  LayoutOfCollectionView.h
//  212--Homework  QQy音乐  阿里星球
//
//  Created by li cheng on 16/8/15.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@protocol LCWaterFlowLayoutDelegate <NSObject>

- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout width:(CGFloat)width heightForItemAtIndexPath:(NSIndexPath *)indexPath;

@end
// 自定义布局,继承与UICollectionViewLayout
// 切记不要继承 UICollectionFlowLayout
@interface LayoutOfCollectionView : UICollectionViewLayout
// collectionView有多少列
@property (nonatomic, assign) NSInteger numebrOfColumns;
@property (nonatomic, weak) id <LCWaterFlowLayoutDelegate>delegate;
@end
NS_ASSUME_NONNULL_END
